/*
 * Copyright (c) 2024. Shanghai HEADING information Engineering Co., Ltd. All rights reserved.
 */
package com.lovely602.design.study.basic;

import java.util.Scanner;

/**
 * @author lizhixing
 */
public class ScannerTest {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    System.out.println("请输入文字：");
    System.out.println("你输入了字符：" + scanner.next());
    System.out.println("请输入数字：");
    System.out.println("你输入了数字：" + scanner.nextInt());
  }
}
